#ifndef CSELECTOR_H
#define CSELECTOR_H

#include <utility>

class CGameObject;

class CSelector {
public:
	CSelector()
		: Block(0)
	{
	}

	void Peek(CGameObject* b)
	{ 
		Block = b;
	}
	
	CGameObject* Get()
	{ 
		return Block;
	}

	void SetPosition(int x, int y)
	{
		Position.first = x;
		Position.second = y;
	}

	bool IsValid() { return (Position.first < 0 || Position.second < 0) ? false : true; }

	int GetX() { return Position.first; }
	int GetY() { return Position.second; }
private:
	CGameObject* Block;
	std::pair<int,int> Position;
};

#endif

